import {OSM,Stamen,XYZ,TileArcGISRest} from "ol/source";

//OpenStreetMap（简称OSM） 开源wiki地图
export const osm = new OSM()
//精美地图
export const stamen = new Stamen({layer: 'toner'})

//高德矢量
export const amap_vec = new XYZ({
  url: 'http://webrd03.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}',
})
//高德影像
export const amap_img = new XYZ({
  url: 'http://webst0{1-4}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}',
})
export const amap_img_label =  new XYZ({
  url: 'http://webst0{1-4}.is.autonavi.com/appmaptile?style=8&x={x}&y={y}&z={z}',
})
//天地图矢量
export const tdt_vec_w = new XYZ({
  url: 'http://t4.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=f50a580b75898a7e26dca2dfe3ad910e',
})
export const tdt_cva_w = new XYZ({
  url: 'http://t4.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=f50a580b75898a7e26dca2dfe3ad910e',
})
//天地图影像
export const tdt_img_w = new XYZ({
  url: 'http://t4.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=f50a580b75898a7e26dca2dfe3ad910e',
})
export const tdt_cia_w = new XYZ({
  url: 'http://t4.tianditu.com/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=f50a580b75898a7e26dca2dfe3ad910e',
})
//天地图地形
export const tdt_ter_w = new XYZ({
  url: 'http://t4.tianditu.com/DataServer?T=ter_w&x={x}&y={y}&l={z}&tk=f50a580b75898a7e26dca2dfe3ad910e',
})
export const tdt_cta_w = new XYZ({
  url: 'http://t4.tianditu.com/DataServer?T=cta_w&x={x}&y={y}&l={z}&tk=f50a580b75898a7e26dca2dfe3ad910e',
})

//国信达：http://tilesvc.cindata.cn/arcgis/rest/services/comm

export const gxd_agency = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/agency/MapServer',
})
export const gxd_area = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/area/MapServer',
})
export const gxd_areaMortgage = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/areaMortgage/MapServer',
})
export const gxd_China4Gather = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/China4Gather/MapServer',
})
export const gxd_China5Gather = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/China5Gather/MapServer',
})
export const gxd_china_poi_gd = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/china_poi_gd/MapServer',
})
export const gxd_ChinaBD = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/ChinaBD/MapServer',
})
export const gxd_ChinaBeige = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/ChinaBeige/MapServer',
})
export const gxd_ChinaBlack = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/ChinaBlack/MapServer',
})
export const gxd_ChinaGD = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/ChinaGD/MapServer',
})
export const gxd_ChinaGray = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/ChinaGray/MapServer',
})
export const gxd_China = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/China/MapServer',
})
export const gxd_ChinaPaleblue = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/ChinaPaleblue/MapServer',
})
export const gxd_ChinaPolarNightBlue = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/ChinaPolarNightBlue/MapServer',
})
export const gxd_google2015 = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/google2015/MapServer',
})
export const gxd_google2016 = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/google2016/MapServer',
})
export const gxd_google2017 = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/google2017/MapServer',
})
export const gxd_google2018 = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/google2018/MapServer',
})
export const gxd_google2019 = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/google2019/MapServer',
})
export const gxd_google20200131 = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/google20200131/MapServer',
})
export const gxd_google20200430 = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/google20200430/MapServer',
})
export const gxd_googleMap = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/googleMap/MapServer',
})
export const gxd_googleMapNew = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/googleMapNew/MapServer',
})
export const gxd_grarea = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/grarea/MapServer',
})
export const gxd_precinct_street = new TileArcGISRest({
  url: 'http://tilesvc.cindata.cn/arcgis/rest/services/comm/precinct_street/MapServer',
})
